unit urel_locacao;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons;

type
  Tfrel_locacao = class(TForm)
    edCodCliente: TEdit;
    Label2: TLabel;
    BitBtn1: TBitBtn;
    Edit1: TEdit;
    procedure BitBtn1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frel_locacao: Tfrel_locacao;

implementation

uses uProcurar, UDM;

{$R *.dfm}

procedure Tfrel_locacao.BitBtn1Click(Sender: TObject);
begin
  FProcurar:=TFProcurar.Create(Self,dm.proc_proprietario);
  try
   FProcurar.BtnProcurar.Click;
   fProcurar.EvDBFind1.DataField := 'NOME_PROPRIETARIO';
   if FProcurar.ShowModal=mrOK then
  begin
   edCodCliente.Text := dm.proc_proprietarioNOME_PROPRIETARIO.AsString;
   Edit1.Text := IntToStr(dm.proc_proprietarioCOD_PROPRIETARIO.AsInteger);
  end;
  finally
   DM.proc_proprietario.Close;
   FProcurar.Free;
  end;

end;

end.
